<?php


namespace app\common\model;


use think\Model;

class Banner extends BaseModel
{
    //自动写入时间
    protected $autoWriteTimestamp = true;
    /**
     * 获取所有没禁用的banner
     * @return \think\Collection|Model[]
     */
    public function getBannerList()
    {
        return $this->where('status',1)->select();
    }
}